package com.changgou.user.feign;


import com.changgou.entity.Result;
import com.changgou.user.pojo.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "user")
public interface UserFeign {

    @RequestMapping("/user/load/{username}")
    public User findUserInfo(@PathVariable("username") String username);


//    @GetMapping("/user/{username}")
//    public Result findById(@PathVariable String username);
}
